home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 25
/
CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso
/
CDSupport
/
Index
< prev
next >
Wrap
Text File
|
1997-08-08
|
980b
|
45 lines
; Searches the CD.index file for a specified string
set OutFile "RAM:CUCDindex"
Version >NIL: version 37
if WARN
echo ""
echo "You need at least version 2.04 of the operating system to run SearchIndex"
quit
endif
set all `RequestChoice "Index search" "Search this CD or all CUCDs?" "This CD|All CDs|Cancel"`
if $all EQ 0
quit
endif
unset str
set str `:C/RequestString TITLE "Search CD Index" BODY "Please enter the string to search for"`
get >NIL: str
if WARN
quit
endif
:C/FlashFind :CDsupport/CUCD.index "$str" >$OutFile NOPREFS QUIET
if $all EQ 2
:C/FlashFind :CDsupport/indices/#? "$str" >>$OutFile NOPREFS QUIET
endif
if `List $OutFile lformat "%B"` EQ "empty"
RequestChoice >NIL: "Index search" "No matches found for *"$str*"" "OK"
else
Version >NIL: version 39
if WARN
AmigaGuide $OutFile
else
MultiView $OutFile
endif
endif
delete >NIL: $OutFile
unset str
unset all
unset OutFile